package app.demo.java.biz;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import app.demo.java.dao.UserDao;
import app.demo.java.entity.UserEntity;
@Service("TestBiz") 
public class TestBiz implements ITestBiz {
	
	@Autowired
    private UserDao userDao;
	
	public Object getEnitiy() {
		UserEntity u = new UserEntity();
    	u.setName("aa");
    	u.setId(1);
    	userDao.save(u);
    	return u;
	}

}
